package com.heng.objectthead;


import org.openjdk.jol.info.ClassLayout;
import org.openjdk.jol.vm.VM;
class Customer{
    int age;
    boolean flag = false;

}
public class ObjectHeadDemo1 {
    public static void main(String[] args) {
        System.out.println(VM.current().details());
        System.out.println(VM.current().objectAlignment());

        System.out.println("//,.,.,...,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,,.,.,.");
        Object o = new Object();
        System.out.println(ClassLayout.parseInstance(o).toPrintable());

        System.out.println("//,.,.,...,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,,.,.,.");
        Customer customer = new Customer();
        System.out.println(ClassLayout.parseInstance(customer).toPrintable());
    }
}
